package com.edu.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.edu.admin.common.BaseMapper;
import com.edu.admin.entity.SysSchoolRoleMenu;
import com.edu.admin.vo.SchoolRoleMenuVo;

/**
 * 角色菜单表数据操作接口
 * 
 * @author Wangjiong
 * 
 */
@Mapper
public interface SchoolRoleMenuMapper extends BaseMapper<SysSchoolRoleMenu> {

	/**
	 * 获取角色菜单列表
	 * 
	 * @param schoolRoleId
	 * @return List<SchoolRoleMenuVo>
	 */
	SysSchoolRoleMenu getSchoolRoleMenuBySchoolRoleIdAndMenuId(Long schoolRoleId,Long menuId);
	
	/**
	 * 获取角色菜单列表
	 * 
	 * @param schoolRoleId
	 * @return List<SchoolRoleMenuVo>
	 */
	List<SchoolRoleMenuVo> getSchoolRoleMenuListBySchoolRoleId(Long schoolRoleId);
		
	/**
	 * 获取角色菜单列表
	 * 
	 * @param menuId
	 * @return List<SchoolRoleMenuVo>
	 */
	List<SchoolRoleMenuVo> getSchoolRoleMenuListByMenuId(Long menuId);
	
	/**
	 * 删除角色菜单
	 * 
	 * @param schoolRoleId
	 *
	 */
	void deleteSchoolRoleMenuBySchoolRoleId(Long schoolRoleId);
	
	/**
	 * 批量保存角色菜单
	 * 
	 * @param schoolRoleId
	 *
	 */
	void batchSave(List<SysSchoolRoleMenu> schoolRoleMenuList);
	


}
